package com.zjc.yohoshop.mvp.view.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.zjc.yohoshop.R;
import com.zjc.yohoshop.bean.HomeMenuEntity;

/**
 * 侧滑菜单适配器
 */
public class HomeMenuAdapter extends BaseQuickAdapter<HomeMenuEntity.Values, BaseViewHolder> {
    public HomeMenuAdapter(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(BaseViewHolder helper, HomeMenuEntity.Values item) {
        helper.setText(R.id.tv_menu_name, item.menu_name);
    }
}
